<template>
	<view class="content mar_bottom">
		<view class="header flex flex_bet flex_align mar_bottom_middle mar_top_middle">
			<view class="header_cate">
				<text class="iconfont icon-fenleiorguangchangorqitatianchong"></text>
			</view>
			<view class="header_search">
				<u-input placeholder="故障排除搜索" prefixIcon="search" shape="circle" fontSize="24rpx">
					<template slot="suffix">
						<u-button
							type="success"
							size="mini"
							class="search_btn"
						>搜索</u-button>
					</template>
				</u-input>
			</view>
		</view>
		<view class="">
			<view class="shop_list flex flex-wrap flex_bet">
				<view v-for="(item,index) in shopList" :key="index" class="show_item mar_bottom">
					<view class="shop_img">
						<image :src="item.img" mode="widthFix"></image>
					</view>
					<view class="shop_txt">
						<text>小红本键盘保护套(HB-P106款)小红本键盘保护套-小红本键盘保护套-后摄像头孔居边款</text>
					</view>
					<view class="shop_fot_info flex flex_bet">
						<view class="price">
							<text>￥</text>
							200
						</view>
						<view class="count_num">
							300人买过
						</view>
					</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shopList:[
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
					{name:'摄像头',price:300,img:'https://jiaoguanyi008.oss-cn-shenzhen.aliyuncs.com/miniPro/images/imgs/ic-pacakaging.png'},
				]
			};
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		margin: 0 20rpx;
	}
	.header{
		.header_cate{
			text{
				font-size: 50rpx;
				color: #696b6c;
			}
		}
		.header_search{
			width: 86%;
			/deep/.u-input{
				border-color: #fff !important;
				background: #f8f8f8;
				padding: 4px !important;
				/deep/ .u-icon__icon{
					color: #dddddd;
				}
			}
			/deep/ .u-button{
				font-size: 13px;
				border-radius: 50px;
				width: none;
				color: #699ccf;
				background: #fff;
				border:none;
				box-shadow: 0 0 1px 0px #ddd;
			}
		}
	}
	.shop_list{
		.show_item{
			width: 48%;
			background: #fff;
			border-radius: 20rpx ;
			.shop_img{
				width: 100%;
				border-radius: 20rpx;
				background: #d6dcea;
				image{
					width: 100%;
				}
			}
			.shop_txt{
				margin: 10rpx;
				font-size: 26rpx;
				color: #000;
				display: -webkit-box;
				 overflow: hidden;
				 text-overflow: ellipsis;
				 -webkit-line-clamp: 2;
				 -webkit-box-orient: vertical;
			}
			.shop_fot_info{
				padding: 10rpx;
				.price{
					color: red;
					text{
						font-size: 24rpx;
					}
				}
				.count_num{
					font-size: 24rpx;
					color: #b3b3b3;
				}
			}
		}
	}
</style>
